package edu.predatorwars.shared.models;

public class Buff 
{
	private final int stat;
	private final float value;
	private int remainingTurns;
	
	public Buff(int stat, float value, int remainingTurns)
	{
		this.stat = stat;
		this.value = value;
		this.remainingTurns = remainingTurns;
	}

	/**
	 * Get the stat this buff effects.
	 * @return
	 */
	public int getStat()
	{
		return stat;
	}
	
	/**
	 * Get how much this buff changes the stat.
	 * @return
	 */
	public float getValue()
	{
		return value;
	}
	
	/**
	 * Get how many more turns this buff will last.
	 * @return
	 */
	public int getRemainingTurns()
	{
		return remainingTurns;
	}
	
	/**
	 * Set how many more turns this buff will last, should only be called by the GameEngine
	 * @param remainingTurns
	 */
	public void setRemainingTurns(int remainingTurns)
	{
		this.remainingTurns = remainingTurns;
	}
}
